#ifndef SEVERINO_H_
#define SEVERINO_H_

#include <iostream>
#include <string>
#include <ctime>
#include <sstream>
#include <string>
#include <fstream>

#include "ServerSocket.h"
#include "SocketException.h"

using namespace std;

class Severino {
public:
	
	Severino() {
		first = true;
		logFile.open("logFile", ios::app );
	};
	
	~Severino(){
		delete server;
	};
	
	void open(int porta);
	void get(string & msg_in);
	void send(string & msg_in);
	
private:
	string msg_send, msg_recive;
	time_t hoje;
	ServerSocket *server;
	ServerSocket new_sock;
	bool first;
	ofstream logFile;
};

#endif /*SEVERINO_H_*/
